// import axios from 'axios'
import request from '@/utils/request'   //导入我们封装好的请求js

/**
 * 后台管理系统登录
 * @param {*} userName 
 * @param {*} password 
 */
export const adminLogin = (userName, password) => {
    return request({
        // url:`Auth/AdminLogin?userName=`+userName+"&password="+password,  //https://localhost:5656/api/Auth/AdminLogin
        url: `Auth/AdminLogin`,  //https://localhost:5656/api/Auth/AdminLogin
        method: `post`,
        params: {
            userName,
            password
        }

    })
}
/**
 * 根据登录用户信息，获取系统侧边栏菜单
 * @returns 
 */
export const getSystemMenus = () => {
    return request({
        url: `Auth/GetSystemMenu`,
        method: `get`,
    })
}
